use std::fs;
use std::env;

fn dir_entry_size(path: &str) -> u64 {
    let size: u64;
    if let Ok(meta) = fs::metadata(path) {
        size = meta.len();
        return meta.len();
    }
    0
}

fn main() {
    let args: Vec<String> = env::args().collect();
    println!("{}", dir_entry_size(&args[1]));
}
